lib.event.listen(window, 'load', function() {
	lib.event.listen(document.getElementById('commentForm'), 'submit', function(event) {
		if (document.getElementById('commentName').value == '') {
			alert('Enter your name!');
			lib.event.preventDefault(event);
			return;
		}
		
		if (document.getElementById('commentContent').value == '') {
			alert('Enter your comment!');
			lib.event.preventDefault(event);
			return;
		}
		
		document.getElementById('jsValid').value = 'true';
	});
});
